<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="cfmt/tldImport.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>会员帐号充值</title>
<script language="javascript" src="js/page.js"> </script>
<script language="javascript" type="text/javascript" src="js/Calendar.js"></script>
<link  href="css/style.css"  rel="stylesheet" type="text/css"/>

</head>
<body>
<div  class="page1">
<form action="AdminServlet?choose=5" name="frm" method="post">
<div style="border:1px solid; color: #FFFF; width: 50%; height: 120px;margin-left: 250px; background-color:#FFFFFF;" align="center">
	<div style="padding-top:17px;">
		<b>开始日期:</b><input type="text" name="stateTime" onfocus="setday(this)"/><br/>
		<b>时间日期:</b><input type="text" name="endTime" onfocus="setday(this)"/><br/>
		<b>订单状态:</b><select name="OrderState" style="width: 150px; height:23px; ">
		<option value="0">不限</option>
		<option value="1">待审核</option>
		<option value="2">已审核</option>
		<option value="3">已付款</option>
		<option value="4">已发货</option>
		</select><br/>
		<input type="submit" name="Submit" value="查询"/>
		<input type="reset" name="reset" value="重置"/>
	</div>
	</div>
</form>

<c:if test="${Orders!=null}">
<div id="Div">
<table width="300px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="cs">编号</td>
    <td class="cs">订单编号</td>
    <td class="cs">创建时间</td>
    <td class="cs">状态</td>
    <td class="cs" align="center">操作</td>
  </tr>
  
  	<c:forEach var="Or" items="${Orders}">
    <tr>
    <td class="cs">${Or.id}</td>
    <td class="cs">${Or.orderId}</td>
    <td class="cs">${Or.createTime}</td>
    <td class="cs"><c:if test="${Or.state==1}">待审核</c:if>
    			   <c:if test="${Or.state==2}">已审核</c:if>
    			   <c:if test="${Or.state==3}">已付款</c:if>
    			   <c:if test="${Or.state==4}">已发货</c:if>
    			   </td>
    <td class="cs" style="font-size:12px;">
    	<a href="#">详细</a>
		<c:if test="${Or.state==1}"><a href="OrdersSelectServlet?type=1&id=${Or.id}">已审核</a></c:if>
	    <c:if test="${Or.state==2}"><a href="OrdersSelectServlet?type=2&id=${Or.id}">已付款</a></c:if>
	    <c:if test="${Or.state==3}"><a href="OrdersSelectServlet?type=3&id=${Or.id}">已发货</a></c:if>
    </td>
  </tr>
  </c:forEach>
</table>
</div>
</c:if>
</div>

</body>
</html>
